package day1.p2;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class TestRectangle {

	public static void main(String[] args) throws NumberFormatException,
			IOException {

		Rectangle[] rect = new Rectangle[5];
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		for (int i = 0; i < rect.length; i++) {
			System.out.println("Enter Length & Bredth : ");
			int l = Integer.parseInt(br.readLine());
			int b = Integer.parseInt(br.readLine());
			rect[i] = new Rectangle(l, b);
			rect[i].display();
		}

	}

}
